package com.guys8.cemsbackend.DTO;

import com.guys8.cemsbackend.entity.Health;
import com.guys8.cemsbackend.entity.User;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class HealthInformation {

    //private UserInformation userInformation;
    private Date upTime;
    private float bodyTemperature;
    private String hcode;

    public HealthInformation(){}
    public HealthInformation(User user,Health health){
        //(new UserInformation(user));
        setUpTime(health.getUpTime());
        setBodyTemperature(health.getBodyTemperature());
        setHcode(health.getHcode());
    }

    public HealthInformation(Health health){
        setUpTime(health.getUpTime());
        setBodyTemperature(health.getBodyTemperature());
        setHcode(health.getHcode());
    }

}
